package com.starchen.optimalselection.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starchen.optimalselection.common.model.AttributeValue;
import com.starchen.optimalselection.common.model.vo.ItemAttrGroupWithAttrVO;

import java.util.List;

/**
 * spu属性值
 *
 * @author daxilong
 * @email daxilong@gmail.com
 * @date 2022-08-14 19:57:36
 */
public interface AttributeValueService extends IService<AttributeValue> {

    void saveAttributeValues(List<AttributeValue> collect);

    List<AttributeValue> baseAttrlistforspu(Long spuId);


    void updateSpuAttr(Long spuId, List<AttributeValue> entities);

    /**
     * 查出此商品所有的规格参数信息(属性分组，组内属性)
     * @param spuId
     * @return
     */
    List<ItemAttrGroupWithAttrVO> getAttrsWithAttrGroupBySpuId(Long spuId);

}

